﻿var  panel_login = new Ext.form.FormPanel({
	//fullscreen:true,
	useCurrentLocation: true,   			
	scroll:'vertical',
	cardSwitchAnimation:"slide",
	layout: {
		type: 'vbox',
		pack: 'center',
		align: 'stretch'
	},
	scroll: 'vertical',
	items:[{
		xtype: 'fieldset',
		title: '로그인',
		instructions: '아이디와 암호를 입력하십시오',
		defaults: {
			required: true,
			labelAlign: 'left',
			labelWidth: '40%'
		},
		items:[{
			xtype:'textfield',
			name:'userid',
				label:'아이디',
				placeHolder:'직원번호',
				autoCapitalisze:true,
				useClearIcon:false
		},{
			xtype:'passwordfield',
			name: 'password',
			placeHolder:'영문자혼합 6자',
			label: '암호',
			useClearIcon:true
		},{
			layout: {
				type: 'hbox',
				pack: 'center',
			},  
			flex: 2, style: 'margin: .5em;',  				
			items:[{
				xtype:'button',
				ui: 'decline-round',
				name:'button_login',
				text:'로그인'
				//iconCls: 'confirm',
				//iconAlign: 'left',
				//iconMask:true,  	
				handler:function(){    				
					alert('로그인');
				},
			},{
				xtype:'spacer',
				width:'20%',
			},{
				xtype:'button',
				ui: 'decline-round',
				name:'button_end',
				handler:function(){    				
					alert('종료');
				},	    				
				text:'종료'
				//iconCls: 'cancel',
				//iconAlign: 'left',
				//iconMask:true,  	    				
			}]	    				    			
		}]
	}],    		
}); 